﻿using System;
using System.Collections;
using System.Collections.Generic;

using UnityEngine;

/// <summary>
/// 为所修饰的字段提供一个选择取值的界面。
/// </summary>
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class EditorButtonAttribute : Attribute
{
   public string buttonName = "...";
   public string targetFieldName = null;
    public EditorButtonAttribute(string targetFieldName, string buttonName)
    {
        this.buttonName = buttonName;
        this.targetFieldName = targetFieldName;
    }
}
